package com.tbit.uqbike.service.business.impl;


import com.tbit.uqbike.object.pojo.DispatchConfig;
import com.tbit.uqbike.service.business.DispatchConfigService;
import com.tbit.uqbike.webmanager.dao.core.DispatchConfigDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("dispatchConfigService")
public class DispatchConfigServiceImpl implements DispatchConfigService {
    @Autowired
    private DispatchConfigDao dispatchConfigDao;

    @Override
    public DispatchConfig getByAccountId(Integer accountId) {
        return dispatchConfigDao.getByAccountId(accountId);
    }

    @Override
    public void insert(DispatchConfig dispatchConfig) {
        dispatchConfigDao.insert(dispatchConfig);
    }

    @Override
    public void update(DispatchConfig dispatchConfig) {
        dispatchConfigDao.update(dispatchConfig);
    }

}  